<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="database.DAO,golf.OnItemList,java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
	request.setCharacterEncoding("utf-8");
	DAO dao = DAO.getInstance();

	
	String[] info= request.getParameterValues("info");
	int charNo =0;
	if(session.getAttribute("charNo")!=null)
	{
		charNo= (Integer)session.getAttribute("charNo");
	}
	
	String id = (String)session.getAttribute("accountID");
	int serverNo = (Integer)session.getAttribute("serverNo");
	int flag=0;
	if(info!=null){
		for(int i=0;i<info.length;i++)
		{
			StringTokenizer a = new StringTokenizer(info[i], "+");
			int j= Integer.parseInt(a.nextToken());
			int k= Integer.parseInt(a.nextToken());
			System.out.println(dao.transItem(charNo,id,j,5 ));
		}
				System.out.println("가져왔땅");
	}else
	{
		System.out.println("선택된 값이 없습니다.");	
	}
		
	
	response.sendRedirect("../jsp/manageItem.jsp");
%>